import java.util.Scanner;
//本类是用来测试扩展赋值运算符的演示demo
public class Test05 {
    public static void main(String[] args) {
        int a = 10;
        a += 4; //等价于 a = a + 4;
        System.out.println(a);//14

        a -= 5;//等价于 a = a - 5;
        System.out.println(a);//9

        a *= 6;//等价于 a = a * 6;
        System.out.println(a);//54

        a /= 3;//等价于 a = a / 3;
        System.out.println(a);//18

        a %= 2;//等价于 a = a % 2;
        System.out.println(a);//0


    }
}
